package com.cc.police.mapper;


import com.cc.police.entity.PUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface PUserMapper {


    PUser login(String username, String password);

    PUser findByUsername(String username);

    void updatePhotoAndName(String avatar, String username,Integer userId);

    /*根据id查看用户信息*/
    PUser findByUserId(Object userId);

    /*修改密码*/
    void updatePasswordByUserId(Object userId, String newmd5Password);

    void updateUsername(@Param("username") String username,@Param("userId")Integer userId);
}